/*
 * This class stores the result of the recommendation. Passed from the middle tier to the UI
 */

package com.querie.pojo;

import java.util.List;
import java.io.Serializable;

import com.querie.parser.Query;
/**
 *
 * @author a-skoshy
 */
public class QueryItemResult implements Serializable{
    private List<RecommendedQuery> simQueries;
    private String topPredictedItems; 
    private Query queryObject;
    private List<String> holdOutStringQueries;
    private int sessionID;
    private List<String> activeSessionQueries;
    private List<String> activeSessionFragments;
    private String topPredictedItemNames;

    public List<String> getActiveSessionQueries() {
        return activeSessionQueries;
    }

    public void setActiveSessionQueries(List<String> activeSessionQueries) {
        this.activeSessionQueries = activeSessionQueries;
    }
    
    public List<String> getHoldOutStringQueries() {
        return holdOutStringQueries;
    }

    public void setHoldOutStringQueries(List<String> holdOutStringQueries) {
        this.holdOutStringQueries = holdOutStringQueries;
    }

    public int getSessionID() {
        return sessionID;
    }

    public void setSessionID(int sessionID) {
        this.sessionID = sessionID;
    }

    public List<RecommendedQuery> getSimQueries() {
        return simQueries;
    }

    public void setSimQueries(List<RecommendedQuery> simQueries) {
        this.simQueries = simQueries;
    }

    public String getTopPredictedItems() {
        return topPredictedItems;
    }

    public void setTopPredictedItems(String topPredictedItems) {
        this.topPredictedItems = topPredictedItems;
    }

    public String getTopPredictedItemNames() {
        return topPredictedItemNames;
    }

    public void setTopPredictedItemNames(String topPredictedItemNames) {
        this.topPredictedItemNames = topPredictedItemNames;
    }

    public Query getQueryObject() {
        return queryObject;
    }

    public void setQueryObject(Query queryObject) {
        this.queryObject = queryObject;
    }

    public List<String> getActiveSessionFragments() {
        return activeSessionFragments;
    }

    public void setActiveSessionFragments(List<String> activeSessionFragments) {
        this.activeSessionFragments = activeSessionFragments;
    }

    public String toString() {
        String message = "" + queryObject + "\n" ;
        for (RecommendedQuery recQuery : simQueries) {
            message = message + recQuery;
        }

        message = message + "\n" ;

        message = message + topPredictedItems + "\n" ;
        
        return message;
    }


}
